package com.tiantian.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.tiantian.dao.BanklistRepository;
import com.tiantian.datajpa.service.impl.GenericServiceImpl;
import com.tiantian.domain.Banklist;
import com.tiantian.service.BanklistService;

@Service
public class BanklistServiceImpl extends GenericServiceImpl<Banklist, String> implements BanklistService{
	private BanklistRepository repository;

	@Autowired
	public void setRepository(BanklistRepository repository) {
		super.setGenericDAO(repository);
		this.repository = repository;
	}

	/**
	 * 获取银行列表
	 * @param searchMap
	 * @return
	 */
	public List<Banklist> getBankList(Map<String, String> searchMap) {

		StringBuilder sql = new StringBuilder();
		Map<String, Object> params = new HashMap<String, Object>();
		sql.append("select * from banklist");
		
		if (searchMap != null) {
		
		
		
		}
		
		
		
		
		
		
		List<Banklist> ret = repository.queryListBySql(sql.toString(), params,
				Banklist.class);
		return ret;
	}

}
